package com.example.android.ui.hb.detail;

import com.example.android.bean.Login;
import com.example.android.bean.SearchHB;
import com.example.android.network.RetrofitClientLocal;
import com.example.android.network.service.HBService;
import com.example.android.network.service.UserService;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;

public class HBDetailModel implements HBDetailContract.IHBDetailModel {
    @Override
    public Flowable<List<SearchHB>> getHBDetail(int hbId) {
        return RetrofitClientLocal.getInstance().getService(HBService.class).getHBDetail(hbId);
    }

    @Override
    public Flowable<List<Login.UserInfoDTO>> getRelease(int userId, String token) {
        return RetrofitClientLocal.getInstance().getService(UserService.class).getUserBasisById(userId,token);
    }
}
